package com.xy.dp.command;

public class Program {
    public static void main(String[] args) {
        Tv tv = new Tv();
        Command commandOn = new CommandOn(tv);
        Command commandoff = new CommandOff(tv);
        Control control = new Control(commandOn,commandoff);
        control.turnOff();
    }
}
